package com.itmeima.d13_extend_visit;

public class Z extends F{
    String name = "子类名称";

    public void showName(){
        String name = "局部变量名称";
        System.out.println(name);
        System.out.println(this.name);
        System.out.println(super.name);
    }
    @Override
    public void print1() {
        System.out.println("子类重写的方法");
    }

    public void showMethod(){
        print1();
        super.print1();
    }
}
